package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.base.domain.mysql.cmdb.CmdbDeviceDetail;
import com.glsc.ngateway.common.base.dto.cmdb.CmdbDeviceDetailDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CmdbDeviceDetailMapper {
    CmdbDeviceDetailMapper INSTANCE = Mappers.getMapper(CmdbDeviceDetailMapper.class);

//    @Mapping(target = "isDelete", ignore = true)
    CmdbDeviceDetailDto domain2dto(CmdbDeviceDetail deviceDetail);

    List<CmdbDeviceDetailDto> domain2dto(List<CmdbDeviceDetail> detailList);


}
